<?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
/**
 * 数据安装
 *
 * @author LeeNux
 *        
 */
class Install extends CI_Controller {
	protected $_model = array(
			'session', 
			'user', 
			'token', 
			'admin', 
			'news', 
			'category' 
	);
	public function index() {}
	public function run() {
		foreach ( $this->_model as $k ) {
			$md = $k . '_model';
			$this->load->model ( $md );
			$this->$md->create ();
		}
		return true;
	}
}
